#ifndef MGCCOREPLUGIN_H
#define MGCCOREPLUGIN_H

#include "MGCToolbox.h"
#include "MGCOptions.h"

class MGCCorePlugin_p;

class MGCCorePlugin : public MGCTool
{
    Q_OBJECT
public:
    MGCCorePlugin(MGCApplication* app, MGCToolbox* toolbox);
    ~MGCCorePlugin();

    Q_PROPERTY(MGCOptions*          options                         READ options                                        CONSTANT)

    virtual MGCOptions* options();

    void setToolBox(MGCToolbox* toolbox);

    virtual QQmlApplicationEngine* createQmlApplicationEngine(QObject* parent);
    virtual void createRootWindow(QQmlApplicationEngine* qmlEngine);

private:
    MGCCorePlugin_p*    _p;
};

#endif // MGCCOREPLUGIN_H
